//
//  MySQLException.h
//  LibMySQL
//
//  Created by Marcus Grenängen on 2009-07-16.
//  Copyright 2009 SneWs Soft. All rights reserved.
//
#import <Cocoa/Cocoa.h>

@interface MySQLException : NSException
{
	NSString  *errorMessage;
	NSInteger errorNumber;
	NSString  *sqlStatement;
}

#pragma mark -
#pragma mark Properties, GET / SET
@property (nonatomic, readonly, retain) NSString *errorMessage;
@property (nonatomic, readonly, assign) NSInteger errorNumber;
@property (nonatomic, readonly, retain) NSString* sqlStatement;

#pragma mark -
#pragma mark Initialization
//- (id)init;
- (id)initWithName:(NSString *)aName reason:(NSString *)txt userInfo:(NSDictionary *)uinfo;
- (id)initWithName:(NSString *)aName reason:(NSString *)txt mysqlError:(NSString *)myErr andMySQLErrorNumber:(NSInteger)myErrNo;

@end